using System;
using System.Collections.Generic;

namespace ECCIT
{
	[Serializable()]
	public class PagingParameterFactory
	{
		public static PagingParameter CreateInstance(bool allowPaging, int currentPageIndex, int pageSize, SortingParameter sortingParameter)
		{
            return new PagingParameter(allowPaging, currentPageIndex, pageSize, sortingParameter);
		}

        public static PagingParameter CreateNonPagingParameter(SortingParameter sortingParameter)
        {
            PagingParameter pagingParams = new PagingParameter(false, 0, 0, sortingParameter);
            return pagingParams;
        }
	}
}
